diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-04-03 20:59:00 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-04-03 20:59:00 +0800 |
| commit | 00dca7e1606eb14b9ccb387560a1980d43e730f9 (patch) | |
| tree | f129a97554b316ae94f9b32e6fb92c8d5d4867d9 /includes/comments.php | |
| parent | e5b7bf6f957c5d3f8af2a3e7e95d351e1d76b380 (diff) | |
🔖 Perf: 优化页面的 ARIA
Diffstat (limited to 'includes/comments.php')
| -rw-r--r-- | includes/comments.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/comments.php b/includes/comments.php index c873a04..1b5ace5 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -9,7 +9,7 @@ }
$commentLevelClass = $comments->_levels > 0 ? ' comment-child' : ' comment-parent'; //评论层数大于0为子级,否则是父级
?>
-<div id="<?php $comments->theId(); ?>" class="comment-body<?php
+<div role="comment" id="<?php $comments->theId(); ?>" class="comment-body<?php
if ($comments->_levels > 0) {
echo ' comment-child';
$comments->levelsAlt(' comment-level-odd', ' comment-level-even');
@@ -57,7 +57,7 @@ echo $commentClass; <div class="comment-container">
<h3 class="comment-title" id="response"><?php $this->commentsNum(_t('暂无评论'), _t('已有 1 条评论'), _t('已有 %d 条评论')); ?></h3>
<?php $comments->listComments(array(
- 'before' => '<div class="comment-list">',
+ 'before' => '<div class="comment-list" role="list">',
'after' => '</div>',
'avatarSize' => 200,
'dateFormat' => 'Y-m-d H:i'
|
