English 中文(简体)
• 如何在html为TD内的各个要素划定边界
原标题:how to assign borders for the elements inside the TD in html
  • 时间:2009-10-29 07:00:26
  •  标签:

i have table unser it i have one td

with elemets inside the menu are coming dynamically from database that is .cs(c#) file i am assging the values ex: i have admin, user, manager like these now i need to assign vertical boder b/w them inside the td like this

|admin| user |manager| as the elements are cmg dynamicallly how to assign border in between them any solution on this would be great thank you

最佳回答

您可使用贵格文(例如,如果您的表_cell_id_here),则在您的html中:

<script type="text/javascript">
  $(document).ready(function() {
    $( #your_table_cell_id_here ).css({ border-left  :  1px solid #000000 ,  border-right  :  1px solid #000000 });
  });
</script>

或只是在您的档案中形成一种新的风格:

.table_class td{
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
}

页: 1

问题回答

暂无回答




相关问题
热门标签