小编son*_*d10的帖子

如何在tr标签周围放置边框?

我有一个非常简单的html页面:

<table>
     <tr><th>header1</th><th>header2</th></tr>
     <tr><td>item1</td><td>item2</td></tr>
     <tr><td>item3</td><td>item4</td></tr>
</table>
Run Code Online (Sandbox Code Playgroud)

用一些简单的css:

tr {
    border:1px solid blue;
}
Run Code Online (Sandbox Code Playgroud)

我希望这会在trs 周围设置边框,但它根本不会在它周围放置边框.如何在周围设置边框tr

html css

14
推荐指数
1
解决办法
2万
查看次数

如何在 python 3 中使用指定的 Web 浏览器打开 URL

我正在 python 3 中创建一个程序,我希望用户使用指定的 Web 浏览器应用程序打开一个 URL。我尝试使用 ,subprocess.Popen([application, URL])但它引发了一个FileNotFoundError. 任何帮助是极大的赞赏。

编辑:我忘了提及我使用的是 Windows 10,这是我收到的错误消息的副本:

Traceback (most recent call last):
File "C:\Users\[Name]\Desktop\AI.py", line 221, in <module>
subprocess.Popen(["google-chrome", "www.google.co.uk/"])
File "C:\Python34\lib\subprocess.py", line 859, in __init__
restore_signals, start_new_session)
File "C:\Python34\lib\subprocess.py", line 1112, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Run Code Online (Sandbox Code Playgroud)

EDIT2:如果我尝试运行,这是我的结果subprocess.Popen(["start", "chrome", "www.example.com/"])(如果我省略"start",了数组的一部分,我会得到同样的错误):

`Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    subprocess.Popen(["start", "chrome", "http://www.google.co.uk/"])
  File "C:\Python34\lib\subprocess.py", line 859, …
Run Code Online (Sandbox Code Playgroud)

url python-3.x

2
推荐指数
1
解决办法
4240
查看次数

标签 统计

css ×1

html ×1

python-3.x ×1

url ×1